<template>
    <div class="md5">
      <p>加密前:{{msg}}</p>
      <p>加密后:{{cryptyMsg}}</p>
    </div>
</template>

<script>
export default {
  name: 'md5',
  data () {
    return {
      msg: '我有一条123456的数据需要加密',
      cryptyMsg: ''
    }
  },
  mounted () {
    this.cryptyMsg = this.$md5(this.msg)
  }
}
</script>

<style scoped>

</style>
